OBJS = spi_api.o spi_flash.o main.o devmem2.o
CC = gcc
TARGET = ./a.out
INCLUDE = 

${TARGET}:${OBJS}
	${CC} ${OBJS} -o ${TARGET} ${INCLUDE}

%.o:%.c
	${CC} -c $^ -o $@

.PHONY:cleans
clean:
	rm -rf *.o ${TARGET}